site.undoCheckOut()

Availability 3.0
Description Removes the lock files that are associated with the selected files from the local and remote sites, and replaces the local copy of the selected files with the remote copy.
Arguments None.
Returns Nothing.
Enabler site.canUndoCheckOut()